import { http } from '@/api';
import { PORT1 } from '@/api/config/port';
import { OTPSearch } from '../interface/otprequest';
import { ResPage } from '../interface';

// otp查询列表
export const Search = (params: OTPSearch) => {
  return http.post<ResPage<OTPSearch>>(PORT1 + `/admin/otp/search`, params);
};

// otp导出列表
export const Export = (params: OTPSearch) => {
  return http.download(PORT1 + `/admin/otp/export`, params, { loading: true });
};
